<?php

  $string = "weekend php is php";
  /*
   * String Length
   * */
  $strLen = strlen($string);
  echo "The length of string is $strLen";
  echo "\n------------\n";
  var_dump($string);
  echo "\n------------\n";

  /*
   * Replace php with zend
   * */

  $newString = str_replace('php','zend',$string, $count);
  echo "After replace($count) 'php' with 'zend' string is => $newString";
  echo "\n------------\n";


  /*
   * Check 'week' is present in "weekend zend"
   * */
    $string = "php is scripting language";
    $pos = strpos($string, 'php');
    var_dump($pos);

    if($pos !== false){
      echo "Success :)";
    } else {
      echo "Fail :(";
    }
    echo "\n------------\n";
    var_dump(0 == false);
    var_dump(0 === false);
    var_dump(11 == '11');
    var_dump(11 === '11');




